package arraylist_imagenes;

import java.util.ArrayList;

public class Motor extends Thread{
	private ArrayList ALserieDibujos;
	private ClaFrame cframe;
	
	public Motor(){
		cframe = new ClaFrame(this);
		ALserieDibujos = new ArrayList();
		this.start();
	}
	public void run(){
		while(true){
			try{
				Thread.sleep(20);
				
			}catch(Exception e){
				e.printStackTrace();
			}
			finally{
				cframe.obtienePanel().repaint();
			}
		}
		
	}
	public ArrayList obtieneSerieDibujos(){
		return ALserieDibujos;
	}

}
